package com.tyqx.hashchainbackend.service;



import com.tyqx.hashchainbean.module.SysRolePermission;
import com.tyqx.hashchainbean.vo.IdVO;
import com.tyqx.hashchainbean.vo.PerOrResourceParamVO;
import com.tyqx.hashchainbean.vo.SysRolePermissionVO;

import java.util.List;
import java.util.Map;

public interface SysRolePermissionService {
    public SysRolePermission getById(Long rpId)throws Exception;

    /**
     * 查询角色已拥有的权限
     * @param roleId    角色ID
     * @return
     * @throws Exception
     */
    public List<PerOrResourceParamVO> queryRolePermission(Long roleId)throws Exception;

    public Integer getCountByMap(Map<String, Object> param)throws Exception;

    public boolean save(IdVO idVO)throws Exception;

    public boolean modify(SysRolePermission sysRolePermission)throws Exception;

    public Integer removeByrpRoleId(Long rpRoleId)throws Exception;

    public List<SysRolePermissionVO> getListByMap(Integer roleId)throws Exception;

    public List<SysRolePermissionVO> getList(Integer roleId)throws Exception;

    public boolean removeById(Long roleId, List<Long> perIds) throws Exception;
}
